.class Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;
.super Ljava/lang/Object;
.source "DlgTwitterSettings.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/DlgTwitterSettings;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "OnClickListenerSignInOut"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/DlgTwitterSettings;


# direct methods
.method private constructor <init>(Lcom/glympse/android/glympse/DlgTwitterSettings;)V
    .locals 0
    .parameter

    .prologue
    .line 337
    iput-object p1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;->this$0:Lcom/glympse/android/glympse/DlgTwitterSettings;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/glympse/android/glympse/DlgTwitterSettings;Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 337
    invoke-direct {p0, p1}, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;-><init>(Lcom/glympse/android/glympse/DlgTwitterSettings;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "v"

    .prologue
    .line 343
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    invoke-virtual {v0}, Lcom/glympse/platform/Config;->HasTwitterCredentials()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 345
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    invoke-virtual {v0}, Lcom/glympse/platform/Config;->ClearTwitterCredentials()V

    .line 346
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;->this$0:Lcom/glympse/android/glympse/DlgTwitterSettings;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->UpdateControls()V

    .line 357
    :goto_0
    return-void

    .line 352
    :cond_0
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;->this$0:Lcom/glympse/android/glympse/DlgTwitterSettings;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/glympse/android/glympse/DlgTwitterSettings;->access$0(Lcom/glympse/android/glympse/DlgTwitterSettings;Z)V

    .line 353
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;->this$0:Lcom/glympse/android/glympse/DlgTwitterSettings;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/glympse/android/glympse/DlgTwitterSettings;->access$1(Lcom/glympse/android/glympse/DlgTwitterSettings;Ljava/lang/String;)V

    .line 354
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;->this$0:Lcom/glympse/android/glympse/DlgTwitterSettings;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->UpdateControls()V

    .line 355
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;->this$0:Lcom/glympse/android/glympse/DlgTwitterSettings;

    invoke-static {v1}, Lcom/glympse/android/glympse/DlgTwitterSettings;->access$2(Lcom/glympse/android/glympse/DlgTwitterSettings;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;->this$0:Lcom/glympse/android/glympse/DlgTwitterSettings;

    invoke-static {v2}, Lcom/glympse/android/glympse/DlgTwitterSettings;->access$3(Lcom/glympse/android/glympse/DlgTwitterSettings;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;->this$0:Lcom/glympse/android/glympse/DlgTwitterSettings;

    invoke-virtual {v0, v1, v2, v3}, Lcom/glympse/platform/Platform;->StartTwitterSignIn(Ljava/lang/String;Ljava/lang/String;Lcom/glympse/platform/common/TwitterJobs$SignInCallback;)Lcom/glympse/platform/common/TwitterJobs$SignInJob;

    goto :goto_0
.end method
